home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / datatypes / datatypes.inc < prev    next >
Text File  |  1998-06-24  |  2KB  |  95 lines

  1. include "inc/exec/types.inc";
  2. include "inc/exec/lists.inc";
  3. include "inc/exec/nodes.inc";
  4. include "inc/exec/libraries.inc";
  5. include "inc/libraries/iffparse.inc";
  6. include "inc/dos/dos.inc";
  7.  
  8. struct DataTypeHeader is
  9.   dth_Name:ulong;
  10.   dth_BaseName:ulong;
  11.   dth_Pattern:ulong;
  12.   dth_Mask:ulong;
  13.   dth_GroupID:ulong;
  14.   dth_ID:ulong;
  15.   dth_MaskLen:word;
  16.   dth_Pad:word;
  17.   dth_Flags:uword;
  18.   dth_Priority:uword;
  19. ;
  20.  
  21. def DTHSIZE = sizeof(DataTypeHeader);
  22.  
  23. def DTF_TYPE_MASK = $000f;
  24. def DTF_BINARY = $0000;
  25. def DTF_ASCII = $0001;
  26. def DTF_IFF = $0002;
  27. def DTF_MISC = $0003;
  28. def DTF_CASE = $0010;
  29. def DTF_SYSTEM1 = $1000;
  30.  
  31. struct DTHookContext is
  32.   dthc_SysBase:ulong;
  33.   dthc_DOSBase:ulong;
  34.   dthc_IFFParseBase:ulong;
  35.   dthc_UtilityBase:ulong;
  36.   dthc_Lock:long;
  37.   dthc_FIB:ulong;
  38.   dthc_FileHandle:long;
  39.   dthc_IFF:ulong;
  40.   dthc_Buffer:ulong;
  41.   dthc_BufferLength:ulong;
  42. ;
  43.  
  44. struct Tool is
  45.   tn_Which:uword;
  46.   tn_Flags:uword;
  47.   tn_Program:ulong;
  48. ;
  49.  
  50. def TSIZE = sizeof(Tool);
  51.  
  52. def TW_INFO = 1;
  53. def TW_BROWSE = 2;
  54. def TW_EDIT = 3;
  55. def TW_PRINT = 4;
  56. def TW_MAIL = 5;
  57.  
  58. def TF_LAUNCH_MASK = $000f;
  59. def TF_SHELL = $0001;
  60. def TF_WORKBENCH = $0002;
  61. def TF_RX = $0003;
  62.  
  63. struct DataType is
  64.   dtn_Node1:Node;
  65.   dtn_Node2:Node;
  66.   dtn_Header:ulong;
  67.   dtn_ToolList:List;
  68.   dtn_FunctionName:ulong;
  69.   dtn_AttrList:ulong;
  70.   dtn_Length:ulong;
  71. ;
  72.  
  73. def DTNSIZE = sizeof(DataType);
  74.  
  75. struct ToolNode is
  76.   tn_Node:Node;
  77.   tn_Tool:Tool;
  78.   tn_Length:ulong;
  79. ;
  80.  
  81. def TNSIZE = sizeof(ToolNode);
  82.  
  83. def DTERROR_UNKNOWN_DATATYPE = 2000;
  84. def DTERROR_COULDNT_SAVE = 2001;
  85. def DTERROR_COULDNT_OPEN = 2002;
  86. def DTERROR_COULDNT_SEND_MESSAGE = 2003;
  87. def DTERROR_COULDNT_OPEN_CLIPBOARD = 2004;
  88. def DTERROR_Reserved = 2005;
  89. def DTERROR_UNKNOWN_COMPRESSION = 2006;
  90. def DTERROR_NOT_ENOUGH_DATA = 2007;
  91. def DTERROR_INVALID_DATA = 2008;
  92.  
  93. def DTMSG_TYPE_OFFSET = 2100;
  94.  
  95.